from meiduo_mall.libs.yuntongxun.sms import CCP
from celery_tasks.main import app

@app.task(name='send_sms_code')
def send_sms_code(mobile,sms_code):
    ccp = CCP()
    print('短信准备发送ing.........')
    ccp.send_template_sms(mobile,[sms_code, '5'], 1)
    print('短信发送成功！！！')

@app.task(name='test_print')
def test_print():
    print(222)